package com.ruicar.afs.cloud.channel.channelworkflow.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.channel.affiliation.condition.AffiliationCondition;
import com.ruicar.afs.cloud.channel.channelworkflow.condition.ChannelOnlineWorkFlowCondition;
import com.ruicar.afs.cloud.channel.channelworkflow.entity.WorkTaskApproveRecord;
import com.ruicar.afs.cloud.workflow.api.dto.flowprocess.response.FlowCmdBean;

/**
 * @author mingzhi.li
 */
public interface WorkTaskApproveRecordService extends IService<WorkTaskApproveRecord> {

    /**
     * 发起审批流程日志存储
     *
     * @param flowName
     * @param bizDataId
     */
    void startSave(String flowName, String bizDataId);

    /**
     * 发起审批流程日志存储
     *
     * @param condition
     */
    void startApproveSave(ChannelOnlineWorkFlowCondition condition);

    /**
     * 审批过程流程日志存储
     *
     * @param condition
     * @param cmd
     */
    void approveSave(ChannelOnlineWorkFlowCondition condition, FlowCmdBean cmd);
    /**
     * 审批过程流程日志存储
     *
     * @param condition
     * @param cmd
     */
    void approveAffiliationSave(AffiliationCondition condition, FlowCmdBean cmd);
}
